<?php
declare (strict_types = 1);

namespace app\validate;

use think\Validate;

class CheckPassword extends Validate
{
    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        "oldPassword" => "require",
        "newPassword" => "require",
        "resNewPassword" => "require",
    ];

    /**
     * 定义错误信息
     * 格式：'字段名.规则名' =>  '错误信息'
     *
     * @var array
     */
    protected $message = [
        "oldPassword.require" => "原密码不能为空",
        "newPassword.require" => "新密码不能为空",
        "resNewPassword.require" => "再次输入密码不能为空",
    ];
}
